package com.whisperly.echotalk.bean;

import androidx.annotation.NonNull;

public class VersionCheckResponse {
    private Boolean hasUpdate;          // 是否有更新
    private String message;             // 提示信息
    private String latestVersion;       // 最新版本名称
    private Integer versionCode;        // 最新版本号
    private String description;         // 版本描述
    private String updateContent;       // 更新内容
    private String updateType;          // 更新类型：RECOMMENDED, OPTIONAL, NOTIFY_ONLY
    private Integer priority;           // 优先级（1-5）
    private Boolean showNotification;   // 是否显示通知

    public VersionCheckResponse() {}

    @NonNull
    @Override
    public String toString() {
        return "VersionCheckResponse{" +
                "hasUpdate=" + hasUpdate +
                ", message='" + message + '\'' +
                ", latestVersion='" + latestVersion + '\'' +
                ", versionCode=" + versionCode +
                ", description='" + description + '\'' +
                ", updateContent='" + updateContent + '\'' +
                ", updateType='" + updateType + '\'' +
                ", priority=" + priority +
                ", showNotification=" + showNotification +
                '}';
    }

    public Boolean getHasUpdate() {
        return hasUpdate;
    }

    public void setHasUpdate(Boolean hasUpdate) {
        this.hasUpdate = hasUpdate;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getLatestVersion() {
        return latestVersion;
    }

    public void setLatestVersion(String latestVersion) {
        this.latestVersion = latestVersion;
    }

    public Integer getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(Integer versionCode) {
        this.versionCode = versionCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUpdateContent() {
        return updateContent;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }

    public String getUpdateType() {
        return updateType;
    }

    public void setUpdateType(String updateType) {
        this.updateType = updateType;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Boolean getShowNotification() {
        return showNotification;
    }

    public void setShowNotification(Boolean showNotification) {
        this.showNotification = showNotification;
    }
}